package com.binge.test8;

import java.util.Scanner;

class SwitchCaseExer6{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		int a = (int)(Math.random() * 6 + 1);//[1,6]=[1,7)
		int b = (int)(Math.random() * 6 + 1);
		int c = (int)(Math.random() * 6 + 1);
		System.out.print("请押宝（豹子，大，小）：");
		String ya = input.next();
		input.close();
		boolean result = false;
		switch(ya){
			case "豹子":
				result = a == b && b == c;
				break;
			case "大":
				result = (a + b + c) > 9;
				break;
			case "小":
				result = (a + b + c) < 9;
				break;
			default:
				System.out.println("输入有误！");
		}

		System.out.println("三个筛子为" + a + "," + b + "," + c);
		System.out.println(result ? "恭喜你猜中了" : "很抱歉，你猜错了");
	}
}